package com.cyandpos.pad.pay.model;



import com.cyandpos.pad.posdata.CashCardItem;
import com.cyandpos.pad.posdata.GetValueCardResponse;

import java.util.List;

/**
 * Created by Administrator on 2017/5/9.
 */

public interface IPayCashCardModel {
    /**
     * 储值卡查询接口
     * @param type
     * @param conValue
     * @param password
     * @param verifiedCode
     * @param listener
     */
    void loadCashCardData(String type, String conValue, String password, String verifiedCode, OnGetCashCardListener listener);

    public interface OnGetCashCardListener{
        void onGetCashCardSuccess(GetValueCardResponse cashCard);
        void onGetCashCardFailure(String msg);
    }

    /**
     * 储值卡立减扣款
     * @param cardItemList
     * @param orderno
     * @param code
     * @param type
     * @param listener
     */
    void CashCardPay(List<CashCardItem> cardItemList, String orderno, String code, int type, OnPayCashCardListener listener);

    public interface OnPayCashCardListener{
        void OnPayCashCardSuccess(String msg);
        void OnPayCashCardFailure(String msg);
    }

}
